import {Component} from '@angular/core';
import {NavController, NavParams, LoadingController} from 'ionic-angular';

@Component({
  templateUrl: 'build/pages/home/test.html',
})
export class TestPage {

  static get parameters() {
    return [[NavController], [NavParams], [LoadingController]];
  }

  constructor(nav, params, loadingController) {
    this.nav = nav;
    this.params = params;
    this.loadingController = loadingController;
    this.item = params.get('item');

    let loader = this.loadingController.create({
      content: 'Please wait...'
    });
    loader.present();

    setTimeout(() => {
      loader.dismiss();
    }, 3000);

    // let loader = this.loadingController.create({
    //   content: 'Please wait...',
    //   duration: 3000
    // });
    // loader.present();

  }

  // presentLoading() {
  //   let loader = this.loadingController.create({
  //     content: 'Please wait...',
  //     duration: 3000
  //   });
  //   loader.present();
  // }
}
